3.06
Save,GamA
 2 , 2 , 1 , 2 , 1 , 1 
 1 , 0 
 0 ,"", 0 , 5 , 0 , 110 
,,
 0 
 0 

 0 
""
" 248"
" 249"
" 250"
 1
""
 191
Simple example by Al Staffieri Jr. showing how to use variables and scripts to test if the player has an object or has done certain things in a game yet.


Run the game and press Begin game.

"Quit","Open Game","Begin Game","","",""
"-1","-3","2","","",""
 0 , 0 , 0 , 0 , 1 
 0 , 0 , 0 , 0 , 1 
 0 , 0 , 0 , 0 , 1 
 0 , 0 , 0 , 0 , 1 
 0 , 0 , 0 , 0 , 1 
 0 , 0 , 0 , 0 , 1 
"","","","","",""
"???????????????????????????????????????????????????"
"@@@@@@"
 0 
 2
""
 263

The script for the door is in a click area script.

Try clicking on the door. If you don't have the key, you won't be able to open it.

Press the "-->" button below to go get the key.

If you already got the key, try going back again and see if it's still there.
"","","-->","","",""
"","","3","","",""
 22 , 123 , 186 , 213 , 1 
 0 , 0 , 0 , 0 , 1 
 0 , 0 , 0 , 0 , 0 
 0 , 0 , 0 , 0 , 1 
 0 , 0 , 0 , 0 , 1 
 0 , 0 , 0 , 0 , 1 
"","","","","",""
"???????????????????????????????????????????????????"
"@@@@@@"
 0 
 3
""
 226
There is a key here. Click on the key to get it. The script for getting the key is in click area #1 on this card.

There's also a script in the Card script to check if you have already been here.

Now go back and try the door.
"<--","","","","",""
"2","","","","",""
 80 , 25 , 186 , 227 , 1 
 0 , 0 , 0 , 0 , 1 
 0 , 0 , 0 , 0 , 1 
 0 , 0 , 0 , 0 , 1 
 0 , 0 , 0 , 0 , 1 
 0 , 0 , 0 , 0 , 1 
"","","","","",""
"???????????????????????????????????????????????????"
"F@@@@@"
 0 
 4
""
 0

"","","","","You did it",""
"","","","","-1",""
 0 , 0 , 0 , 0 , 1 
 0 , 0 , 0 , 0 , 1 
 0 , 0 , 0 , 0 , 1 
 0 , 0 , 0 , 0 , 1 
 0 , 0 , 0 , 0 , 1 
 0 , 0 , 0 , 0 , 1 
"","","","","",""
"???????????????????????????????????????????????????"
"@@@@@@"
 0 
